package com.cn.mmd.service;

import com.cn.mmd.mapper.InformationMapper;
import com.cn.mmd.mapper.StudentInformationMapper;
import com.cn.mmd.model.Information;
import com.cn.mmd.model.StudentInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/7/11 0011.
 */

@Service("informationService")
public class InformationServiceImpl implements  InformationService {

    @Autowired
    private InformationMapper informationMapper;

    @Autowired
    private StudentInformationMapper studentInformationMapper;

    @Override
    public List<Information> selectLimit(Information information) {
        return informationMapper.selectLimit(information);
    }

    @Override
    public Information selectByInformationAll(Information information) {
        return informationMapper.selectByInformationAll(information);
    }

    @Override
    public int insertSelective(Information record) {
        return informationMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Information record) {
        return informationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<Information> selectLimitBy(Information information) {
        return informationMapper.selectLimitBy(information);
    }

    @Override
    public int insertSelective(StudentInformation record) {
        return studentInformationMapper.insertSelective(record);
    }

    @Override
    public StudentInformation selectByAll(StudentInformation studentInformation) {
        return studentInformationMapper.selectByAll(studentInformation);
    }

    @Override
    public int countByStuIdType(StudentInformation studentInformation) {
        return studentInformationMapper.countByStuIdType(studentInformation);
    }

    @Override
    public Information selectByPrimaryKey(Integer informationid) {
        return informationMapper.selectByPrimaryKey(informationid);
    }

    @Override
    public int deleteByPrimaryKey(Integer informationidi) {
        return informationMapper.deleteByPrimaryKey(informationidi);
    }

    @Override
    public int deleteByInfId(Integer infId) {
        return studentInformationMapper.deleteByInfId(infId);
    }

    @Override
    public int countLimitNum(Information information) {
        return informationMapper.countLimitNum(information);
    }


}
